package com.gitee.wsl.ext.net

import java.net.InetSocketAddress


/**
 * Returns a combined string of address and port number.
 *
 * @receiver Address to convert
 * @return a combined string of address and port number
 */
@Throws(IllegalStateException::class)
fun InetSocketAddress.toAddressString(): String =
    address.toAddressString(port)
